import { createStore } from 'vuex'

export default createStore({
  state: {
    //代表登陆用户的身份，{0:未登录,1:老师，2:学生}
    loginUser: 2
  },
  mutations: {
    changeLoginUser(state, id) {
      state.loginUser = id
    }
  },
  actions: {
  },
  modules: {
  }
})
